<? 	
$message = ($this->session->flashdata('message')!='')?$this->session->flashdata('message'):'0';
$err 	 = ($this->session->flashdata('err')!='')?$this->session->flashdata('err'):'0';?>

<section id="content">
	<section class="container_12 clearfix">
		<section id="main" class="grid_9 push_3">			
			<article>
				<h1><?=$page_title?></h1><?
				
				if($message!='0'){?>
					 <div id="info_message"><b><?=$message?></b></div><?	
				}
				if($err!='0'){?>
					 <div id="info_error"><b><?=$err?></b></div><?	
				}
						
				$attributes = array('name' => 'hotel_image_save', 'id' => 'hotel_image_save');
				echo form_open_multipart('admin/hotel/gallery/'.$hotel_id.'/5',$attributes);?> 
                    <input type="hidden" id="hotel_id" name="hotel_id" value="<?=$hotel_id?>" />  
					<dl class="glr_img_edit">
						<dt class="gal_img_lbl"><label for="photo_file">Photo Files:</label></dt>
                        <dt class="gal_img_sprtr"><label>:</label></dt>
                        <dd><input type="file" id="photo_image" name="photo_image"/></dd>

						<dt class="gal_img_lbl"><label for="photo_title">Title:</label></dt>
                        <dt class="gal_img_sprtr"><label>:</label></dt>
						<dd><input type="text" name="title" id="title" class="medium" /></dd>
						
                        <dt class="gal_img_lbl"><label for="photo_file">Room Type:</label></dt>
                        <dt class="gal_img_sprtr"><label>:</label></dt>
                        <dd><select id="room_type_id" name="room_type_id">
                                <option value="1"> Normal </option>
                                <option value="2"> Luxury </option>
                                <option value="3"> Semi Luxury </option>
                                <option value="4"> Super Luxury </option>
                            </select>
                        </dd>
						
                        <dt class="gal_img_lbl"><label for="photo_title">ALT Tag:</label></dt>
                        <dt class="gal_img_sprtr"><label>:</label></dt>
						<dd><input type="text" name="alt_tag" id="alt_tag" class="medium" /></dd>
                        
                        <dt class="gal_img_lbl"><label for="photo_title">Keywords:</label></dt>
                        <dt class="gal_img_sprtr"><label>:</label></dt>
						<dd><textarea name="key_words" id="key_words" class="medium"  rows="4"/></textarea></dd>
                        
						<dt class="gal_img_lbl"><label for="photo_desc">Description:</label></dt>
                        <dt class="gal_img_sprtr"><label>:</label></dt>
						<dd><textarea name="description" id="description" class="medium" rows="5"></textarea></dd>   
                                             
                    </dl>
					<button class="button" type="button" onclick="location='/admin/hotel/gallery/<?=$hotel_id?>/1';">Go Back</button>
                    <button type="submit" class="button">Save</button>
				</form>
			</article>
		</section>		
	</section>
</section>